#include <stdio.h>
int main()
{
    int arr[5] = {0};
    printf("%d\n", sizeof(arr)); // int 4*5
    // printf("%d", sizeof(arr[1])); // 单个元素长度

    char arr1[5] = {0};
    printf("%d\n", sizeof(arr1)); // char 1*5

    int arr2[] = {1, 22, 333, 4444, 5555, 66666, 77777, 8888};
    printf("%d\n", sizeof(arr2) / sizeof(int)); // 求数组长度

    return 0;
}